From f72470e8bfeb86d63496f97d1e0ffcfbb7ec387d Mon Sep 17 00:00:00 2001
From: tsteven4 <13596209+tsteven4@users.noreply.github.com>
Date: Thu, 8 Aug 2019 07:39:37 -0600
Subject: [PATCH] fix interaction between translation and lights. (#390)
When using a language other than English the initial painting of
the gui mainwindow showed the placeholder text for the labels next
to the waypoints, routes and tracks check boxes instead of the
lights. This was issue #389.
---
gui/app.qrc | 1 +
gui/images/lights.png | Bin 0 -> 631 bytes
gui/mainwindow.cc | 3 --
gui/mainwinui.ui | 72 ++++++++++++++++++++++++++++++++++++------
4 files changed, 64 insertions(+), 12 deletions(-)
create mode 100644 gui/images/lights.png
diff --git a/gui/app.qrc b/gui/app.qrc
index 947aea0f4..9e7b01996 100644
--- a/gui/app.qrc
+++ b/gui/app.qrc
@@ -4,6 +4,7 @@
images/01.png
images/10.png
images/11.png
+ images/lights.png
images/open.png
images/save.png
images/runit.png
diff --git a/gui/images/lights.png b/gui/images/lights.png
new file mode 100644
index 0000000000000000000000000000000000000000..8dc9fb2e25a626416eeec9eb840ad960c0eb4715
GIT binary patch
literal 631
zcmeAS@N?(olHy`uVBq!ia0vp^+(0bC!2%>ds`5VuQY`6?zK#qG8~eHcB(eheOiAAE
zE)4(M`_JqL@;D1TB8!2#gh7~*Vb&Z8pdfpRr>`sfV-9u!PUGh3CvP(_Fi!JyaSV~T
z%zDt)M>vt8;o>OM5B#|}D(2|we(Aq=_xa}xh7A?QwfZ)fR=%tGwQe0R
zVt~iPRF;;0uPq%3lNRtFZIJqwGK#hn$qKbC}f
zT8RI-EF~|~>&pAm%6|XesI#K7ycgc7xo^68I{D(>$y>cD7jK&SnPoxHZ_d**Hs;Uw
zb^R4$`Mi-$pIu6Ry?>-el}u2?#rHPvyk^vxS%|wlynIB}_L_+NzOE#P{rtK3dqp_setText("");
- ui_.trackLabel->setText("");
- ui_.routeLabel->setText("");
lights_[0] = QPixmap::fromImage(QImage(":images/00.png").scaledToHeight(20, Qt::SmoothTransformation));
lights_[1] = QPixmap::fromImage(QImage(":images/01.png").scaledToHeight(20, Qt::SmoothTransformation));
lights_[2] = QPixmap::fromImage(QImage(":images/10.png").scaledToHeight(20, Qt::SmoothTransformation));
diff --git a/gui/mainwinui.ui b/gui/mainwinui.ui
index fdac6bda4..f5765e104 100644
--- a/gui/mainwinui.ui
+++ b/gui/mainwinui.ui
@@ -109,7 +109,16 @@
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -144,7 +153,16 @@
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -221,13 +239,25 @@
Translation Options
-
+
+ 4
+
+
+ 4
+
+
+ 4
+
+
4
-
- -
+
+
+
+ :/images/lights.png
false
@@ -270,7 +300,10 @@
-
- -
+
+
+
+ :/images/lights.png
@@ -310,7 +343,10 @@
-
- -
+
+
+
+ :/images/lights.png
@@ -493,7 +529,16 @@
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -528,7 +573,16 @@
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -620,7 +674,7 @@
0
0
675
- 22
+ 26